package chapter08;

import java.util.Scanner;

public class Day6 {
    public static void main(String[] args) {
        double num,max;
       Scanner input = new Scanner(System.in);
        System.out.println("请输入第一个数：");
        num =input.nextDouble();
        max = num;
        for (int i = 1; i < 10; i++) {
            System.out.println("请输入第"+(i+1)+"个数");
            num = input.nextDouble();
            if (num>max)  max=num;
        }
        System.out.println("最大数："+max);
    }
}
